export function parseImage(id: number) {
    return 'https://firstdao.s3.ap-east-1.amazonaws.com/firstDAO/' + id.toString() + '.jpg'
}

export interface NFTIMAGE {
    id: number,
    url: string,
    name: string,
}

export function NFTImage(id: number): NFTIMAGE {
    return {id: id, url: parseImage(id), name: "#" + id.toString().padStart(4, '0')};
}

export function GetLists(page: number, size: number) {
    if (page <= 0) return [];
    let list = [];
    let index = page * size - size;
    for (let i = 1; i <= size; ++i) {
        let now = index + i;
        if (now > 500) break;
        list.push(now);
    }
    return list;
}